//#include<bits/stdc++.h>
#include <iostream>
#include <string>
#include <map>
using namespace std;

int main()
{
	string s;
	cin >> s;
	map<char, int>m;
	int arr[30] = { 0 };
	int maxNum = 0, minNum = 101;
	for (char c : s) {
		m[c]++;
	}
	for (auto at : m) {
		maxNum = maxNum > at.second ? maxNum : at.second;
		minNum = minNum < at.second ? minNum : at.second;
	}
	int cha = maxNum - minNum;
	if(cha<2)
	{
		cout << "No Answer" << endl << 0 << endl;
		goto end;
	}
	for (int i = 2;i * i <= cha;i++)
		if (cha % i == 0)
		{
			cout << "No Answer" << endl << 0 << endl;
			goto end;
		}
	cout << "Lucky Word" << endl << cha << endl;
end:;
	return 0;
}